package com.itrus.ica;

import java.util.Vector;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public abstract class IcaClientBase
{
  private Vector icaConnectionUrls = new Vector();
  protected Log log = LogFactory.getLog(IcaClientBase.class);

  public void addIcaService(String paramString)
  {
    this.icaConnectionUrls.add(paramString);
  }

  // ERROR //
  protected IcaConnection getConnection()
    throws IcaUnavailable
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 25	com/itrus/ica/IcaClientBase:icaConnectionUrls	Ljava/util/Vector;
    //   4: invokevirtual 41	java/util/Vector:clone	()Ljava/lang/Object;
    //   7: checkcast 22	java/util/Vector
    //   10: astore_1
    //   11: aload_0
    //   12: getfield 25	com/itrus/ica/IcaClientBase:icaConnectionUrls	Ljava/util/Vector;
    //   15: invokevirtual 45	java/util/Vector:size	()I
    //   18: istore_2
    //   19: new 47	java/util/Random
    //   22: dup
    //   23: invokespecial 48	java/util/Random:<init>	()V
    //   26: astore_3
    //   27: aload_1
    //   28: invokevirtual 45	java/util/Vector:size	()I
    //   31: ifgt +13 -> 44
    //   34: new 35	com/itrus/ica/IcaUnavailable
    //   37: dup
    //   38: ldc 50
    //   40: invokespecial 52	com/itrus/ica/IcaUnavailable:<init>	(Ljava/lang/String;)V
    //   43: athrow
    //   44: aload_3
    //   45: invokevirtual 55	java/util/Random:nextInt	()I
    //   48: iload_2
    //   49: irem
    //   50: invokestatic 61	java/lang/Math:abs	(I)I
    //   53: istore 4
    //   55: aload_1
    //   56: iload 4
    //   58: invokevirtual 65	java/util/Vector:elementAt	(I)Ljava/lang/Object;
    //   61: checkcast 67	java/lang/String
    //   64: astore 5
    //   66: new 69	com/itrus/ica/IcaConnectionImpl
    //   69: dup
    //   70: aload 5
    //   72: invokespecial 70	com/itrus/ica/IcaConnectionImpl:<init>	(Ljava/lang/String;)V
    //   75: astore 6
    //   77: aload 6
    //   79: ifnull +103 -> 182
    //   82: aload_0
    //   83: getfield 20	com/itrus/ica/IcaClientBase:log	Lorg/apache/commons/logging/Log;
    //   86: new 72	java/lang/StringBuilder
    //   89: dup
    //   90: ldc 74
    //   92: invokespecial 75	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   95: aload 5
    //   97: invokevirtual 79	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   100: ldc 81
    //   102: invokevirtual 79	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   105: invokevirtual 85	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   108: invokeinterface 91 2 0
    //   113: aload 6
    //   115: areturn
    //   116: astore 8
    //   118: aload_0
    //   119: getfield 20	com/itrus/ica/IcaClientBase:log	Lorg/apache/commons/logging/Log;
    //   122: new 72	java/lang/StringBuilder
    //   125: dup
    //   126: ldc 93
    //   128: invokespecial 75	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   131: aload 5
    //   133: invokevirtual 79	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   136: ldc 95
    //   138: invokevirtual 79	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   141: aload 8
    //   143: invokevirtual 98	java/lang/Exception:getMessage	()Ljava/lang/String;
    //   146: invokevirtual 79	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   149: ldc 100
    //   151: invokevirtual 79	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   154: invokevirtual 85	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   157: invokeinterface 103 2 0
    //   162: aload_1
    //   163: iload 4
    //   165: invokevirtual 106	java/util/Vector:remove	(I)Ljava/lang/Object;
    //   168: pop
    //   169: aload_1
    //   170: invokevirtual 45	java/util/Vector:size	()I
    //   173: istore_2
    //   174: goto -147 -> 27
    //   177: astore 8
    //   179: goto -61 -> 118
    //   182: goto -20 -> 162
    //
    // Exception table:
    //   from	to	target	type
    //   66	77	116	java/lang/Exception
    //   82	113	177	java/lang/Exception
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.ica.IcaClientBase
 * JD-Core Version:    0.6.2
 */